<template>
  <div class="common-card">
    <div class="card-header">
      <h3 class="card-title">卡片标题</h3>
      <div class="card-extra">
        <span class="card-action">更多</span>
      </div>
    </div>
    <div class="card-content">
      <p>这是一个基础卡片组件的示例内容。您可以在这里放置任何内容，比如文字、图片、列表等。</p>
    </div>
    <div class="card-footer">
      <button class="card-btn">查看详情</button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CommonCard'
}
</script>

<style scoped>
.common-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.card-header {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.card-extra {
  color: #1890ff;
  cursor: pointer;
}

.card-content {
  padding: 16px;
  color: #666;
  line-height: 1.5;
}

.card-footer {
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
}

.card-btn {
  padding: 6px 16px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.card-btn:hover {
  background: #40a9ff;
}

.card-action:hover {
  color: #40a9ff;
}
</style> 